package cn.edu.scau.cmi.guihao.domin.factory;

import cn.edu.scau.cmi.guihao.interProgramming.factory.InsuranceType;

public class BodilyInjury extends InsuranceType{
	BodilyInjury(String name){
		this.name = name;
	}
	@Override
	public String compensate() {	
		return "pay "+name+" money becauses of bodily injury.";
	}
}
